using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace ShopForWeb.Model.Basic
{
      [Table("T_Admin")] 
  public class Admin
 {
    /// <summary>
    /// 管理员 ID
    /// </summary>
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
   public long AdminId { get; set; }

    /// <summary>
    /// 管理员姓名
    /// </summary>
[StringLength(50)]
   public string AdminName { get; set; } = "";

    /// <summary>
    /// 密码
    /// </summary>
[StringLength(20)]
[Required]
  public string Password { get; set; } = "";

    /// <summary>
    /// 电话
    /// </summary>
[StringLength(11)]
[Required]
   public string Phone { get; set; } = "";
   public int StatusCode{get;set;}=1;
    }
}